libxl: Wait for ballooning if free memory is increasing
authorMike Latimer <mlatimer@suse.com>
Fri, 30 Jan 2015 21:01:00 +0000 (14:01 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 5 Feb 2015 12:14:14 +0000 (12:14 +0000)
commit2563bca11544361dc2afa5e20b5663e10a0715cb
treea9f11b092b21a156d277772105959d18f0f0f7a1
parent441256a532dd737905ce335506d2ffcf0ff0db7c
libxl: Wait for ballooning if free memory is increasing

During domain startup, all required memory ballooning must complete
within a maximum window of 33 seconds (3 retries, 11 seconds of delay).
If not, domain creation is aborted with a 'failed to free memory' error.

In order to accommodate large domains or slower hardware (which require
substantially longer to balloon memory) the free memory process should
continue retrying if the amount of free memory is increasing on each
iteration of the loop.

Signed-off-by: Mike Latimer <mlatimer@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c